<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>美味时光餐厅 - 菜单</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="js/auth.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f5f0;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            background: linear-gradient(to right, #8b5a2b, #d4a76a);
            color: white;
            padding: 20px 0;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .logo {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .logo i {
            margin-right: 10px;
            color: #ffd700;
        }

        .tagline {
            font-style: italic;
            opacity: 0.9;
        }

        nav {
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .categories {
            display: flex;
            justify-content: center;
            list-style: none;
            padding: 15px 0;
            flex-wrap: wrap;
        }

        .categories li {
            margin: 0 15px;
        }

        .categories a {
            text-decoration: none;
            color: #5c3a21;
            font-weight: 600;
            padding: 8px 15px;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .categories a:hover, .categories a.active {
            background-color: #8b5a2b;
            color: white;
        }

        .menu-section {
            padding: 40px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
            color: #5c3a21;
            position: relative;
        }

        .section-title:after {
            content: "";
            display: block;
            width: 80px;
            height: 4px;
            background: #d4a76a;
            margin: 10px auto;
            border-radius: 2px;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
        }

        .menu-item {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }

        .menu-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }

        .menu-image {
            height: 200px;
            overflow: hidden;
        }

        .menu-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .menu-item:hover .menu-image img {
            transform: scale(1.1);
        }

        .item-details {
            padding: 20px;
        }

        .item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .item-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #5c3a21;
        }

        .item-price {
            font-weight: 700;
            color: #d4a76a;
            font-size: 1.1rem;
        }

        .item-desc {
            color: #777;
            font-size: 0.95rem;
            margin-bottom: 15px;
        }

        .item-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background: #f0e6d8;
            color: #8b5a2b;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .tag.veg {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .tag.spicy {
            background: #ffebee;
            color: #c62828;
        }

        .tag.recommended {
            background: #fff8e1;
            color: #ff8f00;
        }

        .special-badge {
            position: absolute;
            top: 15px;
            right: -30px;
            background: #ff6b6b;
            color: white;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-weight: 700;
            font-size: 0.8rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        footer {
            background: #5c3a21;
            color: #f0e6d8;
            text-align: center;
            padding: 30px 0;
            margin-top: 40px;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .contact-info {
            margin: 15px 0;
        }

        .social-links {
            margin: 20px 0;
        }

        .social-links a {
            color: #f0e6d8;
            font-size: 1.5rem;
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: #d4a76a;
        }

        .copyright {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            .categories {
                justify-content: flex-start;
                overflow-x: auto;
                padding: 15px 10px;
                white-space: nowrap;
            }

            .categories li {
                margin: 0 8px;
            }

            .menu-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 2rem;
            }

            .menu-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body data-require-login="true">
<header>
    <div class="container">
        <div class="logo">
            <i class="fas fa-utensils"></i>
            美味时光餐厅
        </div>
        <p class="tagline">用心烹饪每一道菜，让美食温暖您的时光</p>
    </div>
</header>

<nav>
    <div class="container">
        <ul class="categories">
            <li><a href="#" class="active">全部菜品</a></li>
            <li><a href="#">开胃菜</a></li>
            <li><a href="#">主菜</a></li>
            <li><a href="#">汤类</a></li>
            <li><a href="#">沙拉</a></li>
            <li><a href="#">甜点</a></li>
            <li><a href="#">饮品</a></li>
        </ul>
    </div>
</nav>

<section class="menu-section">
    <div class="container">
        <h2 class="section-title">今日菜单</h2>

        <div class="menu-grid">
            <!-- 菜品 1 -->
            <div class="menu-item">
                <div class="special-badge">招牌菜</div>
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="意大利面">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">经典意大利面</h3>
                        <span class="item-price">¥68</span>
                    </div>
                    <p class="item-desc">手工制作的面条配上秘制番茄酱，撒上新鲜罗勒和帕尔玛干酪</p>
                    <div class="item-tags">
                        <span class="tag recommended">主厨推荐</span>
                        <span class="tag">意式</span>
                    </div>
                </div>
            </div>

            <!-- 菜品 2 -->
            <div class="menu-item">
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1606755962773-d324e7a7a7bf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="牛排">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">澳洲谷饲牛排</h3>
                        <span class="item-price">¥128</span>
                    </div>
                    <p class="item-desc">200天谷饲安格斯牛排，搭配黑胡椒酱和烤时蔬</p>
                    <div class="item-tags">
                        <span class="tag">澳洲风味</span>
                        <span class="tag recommended">人气必点</span>
                    </div>
                </div>
            </div>

            <!-- 菜品 3 -->
            <div class="menu-item">
                <div class="special-badge">新品</div>
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1563379926898-05f4575a45d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="沙拉">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">地中海藜麦沙拉</h3>
                        <span class="item-price">¥48</span>
                    </div>
                    <p class="item-desc">有机藜麦、牛油果、小番茄、橄榄和羊奶酪，配柠檬油醋汁</p>
                    <div class="item-tags">
                        <span class="tag veg">素食</span>
                        <span class="tag">健康</span>
                    </div>
                </div>
            </div>

            <!-- 菜品 4 -->
            <div class="menu-item">
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1476224203421-9ac39bcb3327?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="披萨">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">玛格丽特披萨</h3>
                        <span class="item-price">¥78</span>
                    </div>
                    <p class="item-desc">手工薄底披萨，番茄酱、马苏里拉奶酪和新鲜罗勒</p>
                    <div class="item-tags">
                        <span class="tag">意式</span>
                        <span class="tag veg">素食</span>
                    </div>
                </div>
            </div>

            <!-- 菜品 5 -->
            <div class="menu-item">
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1606491956689-2ea866880c84?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="汤">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">奶油蘑菇汤</h3>
                        <span class="item-price">¥38</span>
                    </div>
                    <p class="item-desc">新鲜蘑菇与奶油慢炖，搭配烤面包丁</p>
                    <div class="item-tags">
                        <span class="tag">法式</span>
                        <span class="tag veg">素食</span>
                    </div>
                </div>
            </div>

            <!-- 菜品 6 -->
            <div class="menu-item">
                <div class="special-badge">招牌菜</div>
                <div class="menu-image">
                    <img src="https://images.unsplash.com/photo-1578985545062-69928b1d9587?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="甜点">
                </div>
                <div class="item-details">
                    <div class="item-header">
                        <h3 class="item-name">熔岩巧克力蛋糕</h3>
                        <span class="item-price">¥42</span>
                    </div>
                    <p class="item-desc">热巧克力蛋糕配香草冰淇淋，流心巧克力酱</p>
                    <div class="item-tags">
                        <span class="tag recommended">人气必点</span>
                        <span class="tag">法式</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<footer>
    <div class="container">
        <div class="footer-content">
            <h3>美味时光餐厅</h3>
            <div class="contact-info">
                <p><i class="fas fa-map-marker-alt"></i> 北京市朝阳区美食街88号</p>
                <p><i class="fas fa-phone"></i> 010-88889999</p>
                <p><i class="fas fa-clock"></i> 营业时间: 10:00 - 22:00</p>
            </div>
            <div class="social-links">
                <a href="#"><i class="fab fa-weixin"></i></a>
                <a href="#"><i class="fab fa-weibo"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
                <a href="#"><i class="fab fa-tiktok"></i></a>
            </div>
            <p class="copyright">© 2023 美味时光餐厅 版权所有</p>
        </div>
    </div>
</footer>

<script>
    // 简单的分类切换效果
    document.querySelectorAll('.categories a').forEach(link => {
        link.addEventListener('click', function(e) {
            e.preventDefault();

            // 移除所有active类
            document.querySelectorAll('.categories a').forEach(item => {
                item.classList.remove('active');
            });

            // 给当前点击的链接添加active类
            this.classList.add('active');

            // 在实际应用中，这里应该加载对应分类的菜品
            const category = this.textContent;
            alert(`切换到: ${category} (实际应用中会加载对应分类的菜品)`);
        });
    });

    // 页面滚动效果
    window.addEventListener('scroll', function() {
        const header = document.querySelector('header');
        if (window.scrollY > 50) {
            header.style.padding = '10px 0';
        } else {
            header.style.padding = '20px 0';
        }
    });
</script>
</body>
</html>